package org.example.salarysystem.pojo;



public class Department {
    private Integer deptId;   // 部门编号
    private String name;      // 部门名称
    private String leader;    // 部门负责人姓名

    public Department() {
    }

    public Department(Integer deptId, String name, String leader) {
        this.deptId = deptId;
        this.name = name;
        this.leader = leader;
    }

    /**
     * 获取
     * @return deptId
     */
    public Integer getDeptId() {
        return deptId;
    }

    /**
     * 设置
     * @param deptId
     */
    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return leader
     */
    public String getLeader() {
        return leader;
    }

    /**
     * 设置
     * @param leader
     */
    public void setLeader(String leader) {
        this.leader = leader;
    }

    public String toString() {
        return "Department{deptId = " + deptId + ", name = " + name + ", leader = " + leader + "}";
    }
}
